package com.example.onlinemusic.tools;
import lombok.Data;
/**
 * Created with IntelliJ IDEA.
 * Description:统一(泛型)的响应体
 * User: hold on
 * Date: 2022-07-26
 * Time: 21:32
 */
@Data
public class ResponseBodyMessage <T>{
    private int status;//状态码 0 表示成功,-1表示失败!
    private String message;//响应信息描述
    private T data; //返回的数据,这里采用泛型因为响应的数据的种类很多
    public ResponseBodyMessage(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
